<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用户列表页</title>
</head>
<body>
    <h2>用户列表</h2>
    <table border="1" th:if="${list != null && list.size() > 0}">
        <tr>
            <th>用户名</th>
            <th>密码</th>
            <th>角色</th>
        </tr>
        <tr th:each="item:${list}">
            <td th:text="${item.userName}"></td>
            <td th:text="${item.password}"></td>
            <td th:text="${item.role}"></td>
        </tr>
    </table>
</body>
</html>